----- How to use --------
1. GContour.exe needs one parameter: name of the file you are going to process, format must be .ply.
GContour.exe somefile.ply

2. Shortcut (press the keys to turn on or off the features)
's'  --- model shown in face or point
'w'  --- wireframe on/off
'o'  --- outline on/off

'p'  --- show cutting plane on/off
->   --- rotate one axis of the plane
<-   --- rotate one axis of the plane, in the opposite direction
/|\(uparrow) and \|/(downarrow) --- rotate around the other axis
page up and page down --- move the plane up and down

'u'  --- write contour on curent cutting plane out into file
'y'  --- write all the contours on all the cutting planes into files '1' '2'...'n', n is the number of cutting planes.

----- Format of the output file --------
1. It is in mathematica input file format, if you have mathematica, it's easy to process the data.
data is organized as follows:
{{zaxis,yaxis,xaxis},vertex,edge}
In mathematica, index starts from 1. 
Edge are represented as the index of two endpoints in vertex list. If there are totally n vertices, then numbers in the edge list range from 1 to n.

2. If you press 'u', it will write contours on current cutting plane into a file with a number. It will start with number 1, search until there is no file named with this number in the directory of GContour.exe, and name the new file as that number, i.e, if file named with '1' exists, but '2' doesn't, it will write into file with number '2'.

3. If you press 'y', it will write all the contours you have selected so far into a series of files, named from '1' to 'n', n is the number of all the cutting planes you have selected(press 'u' to select).

4. Issues of the data
(1)Consistency issue.
Two closed contour on two cutting planes, they cross each other, the intersection points most probably won't exist in the vertex list of the two contours.
(2)edges are too short issue
We encounter numerical issue if edge is too short. Postprocess of the data to merge some edges is necessary.